function PlotGrid2( map,maps_type,ColorMap)
figure(1)
b = maps_type;
%disp(a(end,end));
b(end+1,end+1) = 0;
%disp(b);


%disp(size(a));
s=pcolor(0.5:size(maps_type,1)+0.5,0.5:size(maps_type,2)+0.5,b'); hold on% 赋予栅格颜色
colormap(ColorMap);  % 创建颜色 
s.EdgeColor=[50,50,50]./255;
s.LineWidth=0.1;

% set(gca,'xaxislocation','top','yaxislocation','left','ydir','reverse')
% set(gca,'XTick',1:size(maps_type,1),'YTick',1:size(maps_type,2));  % 设置坐标
axis image xy;  % 沿每个坐标轴使用相同的数据单位，保持一致

end
